import { get, post, del, put } from "../utils/request";
/**
 * 添加购物车
 * @returns
 */
export const addCartAPI = (data) => post("/api/v1/shop_carts", data);
/***
 * 删除购物车数据
 */
export const delCartDataAPI = (id) => del("/api/v1/shop_carts/" + id);

/**
 *获取购物车数据
 */
export const loadCartDataAPI = () => get("/api/v1/shop_carts");
